﻿using FactoryMethodPattern.Pizzas;
using System;
using System.Collections.Generic;
using System.Text;

namespace FactoryMethodPattern
{
    public class LiuZhouPizzaStore : PizzaStore
    {
        protected override Pizza CreatePizza(string type)
        {
            //throw new NotImplementedException();
            Pizza pizza = null;
            switch (type)
            {
                case "snail":
                    pizza = new LiuzhouSnailPIzza();
                    break;
                case "tea":
                    pizza = new LiuzhouTeaMilkPizza();
                    break;
            }
            return pizza;
        }
    }
}
